﻿using System;
using System.Windows.Forms;
using CancioneroCONFAD.Formularios;

namespace CancioneroCONFAD
{
    public partial class FrmPpal : Form
    {
        public FrmPpal()
        {
            InitializeComponent();
        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void agregarCancionToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var frm = new CrearCancion
            {
                WindowState = FormWindowState.Maximized,
                MdiParent = this,
                //Size = this.Size
            };
            frm.Show();
        }

        private void verCancionesToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            var frm = new VerCanciones() { MdiParent = this, WindowState = FormWindowState.Maximized };
            frm.Show();
        }

        private void crearListaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new CrearLista() { MdiParent = this, WindowState = FormWindowState.Maximized };
            frm.Show();
        }

        private void FrmPpal_Load(object sender, EventArgs e)
        {
            var f1 = new Splash(5);
            f1.ShowDialog(this);     // Mostramos el formulario de forma modal.
            f1.Dispose();
        }

        private void verListasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new VerListas(){MdiParent = this,WindowState = FormWindowState.Maximized};
            frm.Show();
        }

        

    }
}
